home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / game / data / sds_amiga.lha / Amiga_sds < prev    next >
Encoding:
Text File  |  2001-11-13  |  6.9 KB  |  240 lines

  1. ;build sds pak batch
  2. ECHO "Scourge done Slick by the Quake done Quick team (http://www.planetquake.com/qdq/)"
  3. assign here: ""
  4.  
  5. ;check if user has ixemul.library (requierd for qtools)and use that instead
  6. if exists "libs:ixemul.library"
  7.    echo "found your ixemul.library"
  8.  else
  9.    echo "ixemul.library not found, using generic 020 version"
  10. ;add lib to system
  11.   copy >NIL: amigastuff/libs/ixemul.library t:
  12.   assign libs: t: ADD
  13. endif
  14.  
  15. ;copy qtools exe to current folder and assign needed libs
  16. makedir >NIL: t:qtoolslibs
  17. copy >NIL: qtools_files/libs/ t:qtoolslibs ALL
  18. assign libs: t:qtoolslibs ADD
  19.  
  20. ;lets go!
  21. ;extract pak contents in sdsmega order, assuming qtools overwrites files
  22. ;due to lameness of qtools we need to do a copy & delete orgy to,
  23. ;cos qtools adds files the way they are stored on hd with full relative path (it whould even iclude : in filenames .. DOH!!),
  24. ;have not found a workaround for this :/
  25.  
  26. ;extract everything from pak
  27. echo "working on pak0.pak"
  28. qtools x pak0.pak
  29. ;copy this to new dir
  30. cd pak0.dir
  31.    copy >NIL: ALL #? /
  32.    cd /
  33.    ;delete old dir & file writen by qtools
  34.    delete >NIL: pak0.dir all
  35.    delete >NIL: pak0.idx
  36. if exists pak1.pak
  37.    echo "working on pak1.pak"
  38.    qtools x pak1.pak
  39.    cd pak1.dir
  40.    copy >NIL: ALL #? /
  41.    cd /
  42.    delete >NIL: pak1.dir all
  43.    delete >NIL: pak1.idx
  44.   else echo "no pak1.pak?!"
  45. endif
  46. if exists firstper.pak
  47.    echo "working on firstper.pak"
  48.    qtools x firstper.pak
  49.    cd firstper.dir
  50.    copy >NIL: ALL #? /
  51.    cd /
  52.    delete >NIL: firstper.dir all
  53.    delete >NIL: firstper.idx
  54.   else "echo no firstper.pak (if you got pak2.pak everything is fine)
  55. endif
  56.  
  57. if exists pak2.pak
  58.    echo "working on pak2.pak"
  59.    qtools x pak2.pak
  60.    cd pak2.dir
  61.    copy >NIL: ALL #? /
  62.    cd /
  63.    delete >NIL: pak2.dir all
  64.    delete >NIL: pak2.idx
  65.   else "no pak2.pak (if you have firstper.pak everything is fine)"
  66. endif
  67.  
  68. if exists sdslite.pak
  69.    echo "working on sdslite.pak"
  70.    qtools x sdslite.pak
  71.    cd sdslite.dir
  72.    copy >NIL: ALL #? /
  73.    cd /
  74.    delete >NIL: sdslite.dir all
  75.    delete >NIL: sdslite.idx
  76.   else "no lite pak available"
  77. endif
  78.  
  79. if exists voxjo.pak
  80.    echo "working on voxjo.pak"
  81.    qtools x voxjo.pak
  82.    cd voxjo.dir
  83.    copy >NIL: ALL #? /
  84.    cd /
  85.    delete >NIL: voxjo.dir all
  86.    delete >NIL: voxjo.idx
  87.   else "voxjo pak couldnt be found in current drawer"
  88. endif
  89.  
  90. if exists "patch.pak"
  91.    echo "working on patch.pak"
  92.    qtools x patch.pak
  93.    cd patch.dir
  94.    copy >NIL: ALL #? /
  95.    cd /
  96.    delete >NIL: patch.dir all
  97.    delete >NIL: patch.idx
  98.   else echo "doh! no patch pak!"
  99. endif
  100.  
  101. ;kill paks and pc stuff
  102.  
  103. delete >nil: choice.com
  104. delete >nil: counter.bat
  105. delete >nil: firstper.pak
  106. delete >nil: move_pak.bat
  107. delete >nil: pak0.pak
  108. delete >nil: pak1.pak
  109. delete >nil: pak2.pak
  110. delete >nil: patch.pak
  111. delete >nil: sds.bat
  112. delete >nil: sdsfixgl
  113. delete >nil: sdsfixgl.exe
  114. delete >nil: sdsfixgl.hqx
  115. delete >nil: sdslite.pak
  116. delete >nil: voxjo.pak
  117.  
  118. ;lets create a single pak file for everything :)
  119.  
  120. echo "building single pakfile"
  121.   C:List credits/#? TO T:liste LFORMAT "qtools a credits/%S -o pak0.pak"
  122.   C:List firstper/#? TO T:liste1 LFORMAT "qtools a firstper/%S -o pak0.pak"
  123.   C:List gfx/#? TO T:liste2 LFORMAT "qtools a gfx/%S -o pak0.pak"
  124.   C:List lite/#? TO T:liste3 LFORMAT "qtools a lite/%S -o pak0.pak"
  125.   C:List maps/#? TO T:liste4 LFORMAT "qtools a maps/%S -o pak0.pak"
  126.   C:List movie/#? TO T:liste5 LFORMAT "qtools a movie/%S -o pak0.pak"
  127.   C:List otherdem/#? TO T:liste6 LFORMAT "qtools a otherdem/%S -o pak0.pak"
  128.   C:List progs/count/#? TO T:liste7 LFORMAT "qtools a progs/count/%S -o pak0.pak"
  129.   C:List progs/#? TO T:liste8 LFORMAT "qtools a progs/%S -o pak0.pak" files
  130.   C:List progs/credits/#? TO T:liste9 LFORMAT "qtools a progs/credits/%S -o pak0.pak"
  131.   C:List sound/sds/command/#? TO T:liste10 LFORMAT "qtools a sound/sds/command/%S -o pak0.pak"
  132.   C:List sound/sds/count/#? TO T:liste11 LFORMAT "qtools a sound/sds/count/%S -o pak0.pak"
  133.   C:List sound/sds/enforcer/#? TO T:liste12 LFORMAT "qtools a sound/sds/enforcer/%S -o pak0.pak"
  134.   C:List sound/sds/event/#? TO T:liste13 LFORMAT "qtools a sound/sds/event/%S -o pak0.pak"
  135.   C:List sound/sds/george/#? TO T:liste14 LFORMAT "qtools a sound/sds/george/%S -o pak0.pak"
  136.   C:List sound/sds/levelord/#? TO T:liste15 LFORMAT "qtools a sound/sds/levelord/%S -o pak0.pak"
  137.   C:List sound/sds/marine/#? TO T:liste16 LFORMAT "qtools a sound/sds/marine/%S -o pak0.pak"
  138.   C:List sound/sds/medic/#? TO T:liste17 LFORMAT "qtools a sound/sds/medic/%S -o pak0.pak"
  139.   C:List sound/sds/music/#? TO T:liste18 LFORMAT "qtools a sound/sds/music/%S -o pak0.pak"
  140.   C:List sound/sds/strogg/#? TO T:liste19 LFORMAT "qtools a sound/sds/strogg/%S -o pak0.pak"
  141.   C:List sound/sds/voice/#? TO T:liste20 LFORMAT "qtools a sound/sds/voice/%S -o pak0.pak"
  142.   C:LIST sound/boss2/#? TO T:liste21 LFORMAT "qtools a sound/boss2/%S -o pak0.pak"
  143.   execute t:liste
  144.   execute t:liste1
  145.   execute t:liste2
  146.   execute t:liste3
  147.   execute t:liste4
  148.   execute t:liste5
  149.   execute t:liste6
  150.   execute t:liste7
  151.   execute t:liste8
  152.   execute t:liste9
  153.   execute t:liste10
  154.   execute t:liste11
  155.   execute t:liste12
  156.   execute t:liste13
  157.   execute t:liste14
  158.   execute t:liste15
  159.   execute t:liste16
  160.   execute t:liste17
  161.   execute t:liste18
  162.   execute t:liste19
  163.   execute t:liste20
  164.   execute t:liste21
  165.   qtools a pak2_yes.rc -o pak0.pak
  166.   qtools a progs.dat -o pak0.pak
  167.   qtools a quake.rc -o pak0.pak
  168.   qtools a sds.cfg -o pak0.pak
  169.   qtools a vocals.cfg -o pak0.pak
  170.   qtools a config.cfg -o pak0.pak
  171.  
  172. ;qtools adds hidden flag to pak, remove h bit
  173. c:protect pak0.pak sub h
  174.  
  175. ;whooa shit... lets clean up
  176. echo "cleaning up....."
  177.  
  178. delete >NIL: t:liste
  179. delete >NIL: t:liste1
  180. delete >NIL: t:liste2
  181. delete >NIL: t:liste3
  182. delete >NIL: t:liste4
  183. delete >NIL: t:liste5
  184. delete >NIL: t:liste6
  185. delete >NIL: t:liste7
  186. delete >NIL: t:liste8
  187. delete >NIL: t:liste9
  188. delete >NIL: t:liste10
  189. delete >NIL: t:liste11
  190. delete >NIL: t:liste12
  191. delete >NIL: t:liste13
  192. delete >NIL: t:liste14
  193. delete >NIL: t:liste15
  194. delete >NIL: t:liste16
  195. delete >NIL: t:liste17
  196. delete >NIL: t:liste18
  197. delete >NIL: t:liste19
  198. delete >NIL: t:liste20
  199. delete >NIL: t:liste21
  200. delete >NIL: credits/ all noreq quiet
  201. delete >NIL: firstper/ all noreq quiet
  202. delete >NIL: gfx/ all noreq quiet
  203. delete >NIL: libs/ all noreq quiet
  204. delete >NIL: lite/ all noreq quiet
  205. delete >NIL: maps/ all noreq quiet
  206. delete >NIL: movie/ all noreq quiet
  207. delete >NIL: otherdem/ all noreq quiet
  208. delete >NIL: progs/ all noreq quiet
  209. delete >NIL: qtools_files/ all noreq quiet
  210. delete >NIL: sound/ all noreq quiet
  211. delete >NIL: amiga_sds
  212. delete >NIL: amiga_sds.info
  213. delete >NIL: config.cfg
  214. delete >NIL: pak2_yes.rc
  215. delete >NIL: progs.dat
  216. delete >NIL: qtools
  217. delete >NIL: quake.rc
  218. delete >NIL: sds.cfg
  219. delete >NIL: vocals.cfg
  220.  
  221. if exists t:ixemul.library
  222.  delete t:ixemul.library
  223. endif
  224.  
  225. if exists t:qtoolslibs
  226.  delete >NIL: all t:qtoolslibs/
  227. endif
  228.  
  229. if exists /hipnotic
  230.  copy sdsfix.68k /
  231.  cd /
  232.  sdsfix.68k
  233.  delete >NIL: sdsfix.68k
  234.  cd here:
  235.  delete >NIL: sdsfix.68k
  236.  else echo "run sdsfix.68k from quake basedir/HIPNOTIC/ to fix cache mismatch problems with glquake and hipnotic"
  237. endif
  238. echo "done!"
  239. wait 2
  240.